<#include "../common/layout.ftl"/>
<@layout>
<div class="well">
	<span class="label label-success">修改会员资料</span>
	<form id="form1" class="well form-horizontal" action="../update"  method="post">
	  <input name="member.id"  type="hidden" value="${member.id}" >
	  <input name="member.cell_phone"  type="hidden" value="${member.cell_phone}" >
      <div class="control-group">
        <label class="control-label" for="focusedInput">手机号码：</label>
        <div class="controls" >
          ${member.cell_phone}
        </div>
      </div>
        <div class="control-group">
        <label class="control-label" for="focusedInput">真实姓名：</label>
        <div class="controls" >
          <input class="input-xlarge focused" name="member.real_name" id="realname" type="text"  style="height: 26"  value="${member.real_name}">
        </div>
      </div>
       <div class="control-group">
        <label class="control-label" for="focusedInput">性别：</label>
        <div class="controls" >
        	<select id="sex" name="member.sex">
                <option value="0" <#if member.sex==0 >selected</#if>>男</option>
                <option value="1" <#if member.sex==1 >selected</#if>>女</option>
                <option value="2" <#if member.sex==2 >selected</#if>>未知</option>
              </select>
        </div>
      </div>
      <div class="form-actions">
        <button type="submit" class="btn btn-primary" onsubmit="save()">确 定</button>
        <button type="reset" class="btn">重 置</button>
        <button type="button" class="btn btn-info" onclick="javascript:history.back();">返回</button>
      </div>
  </form>
  </div>
 <script>
	$(function() { 
     $("#form1").validity(function() {
         $("#realname").require();
         $("#cellphone").require().match("number");
         //$("#plage_number").require();
     });
     
 }); 
</script>

</@layout>